#include <iostream>
using namespace std;

/**
 * 简单计算器
 */
int main() {
    int a,b;
    char c;
    cin>>a>>b>>c;
    if(c=='/'&&b==0){
        cout<<"Divided by zero!";
    }
    else if(c!='+'&&c!='-'&&c!='*'&&c!='/'){
        cout<<"Invalid operator!";
    }else if(c=='+'){
        cout<<a+b;
    }else if(c=='-'){
        cout<<a-b;
    }else if(c=='*'){
        cout<<a*b;
    }else{
        cout<<a/b;
    }
}